import type { PlusColumn } from "plus-pro-components";

const tableColumns: TableColumnList = [
  {
    label: "用户名",
    prop: "username",
    width: 150
  },
  {
    label: "头像",
    prop: "avatar",
    slot: "avatar",
    width: 80
  },
  {
    label: "昵称",
    prop: "nickname",
    width: 200
  },
  {
    label: "邮箱",
    prop: "email",
    width: 220
  },
  {
    label: "手机号",
    prop: "phone",
    width: 150
  },

  {
    label: "状态",
    prop: "status",
    slot: "status",
    width: 120
  },
  {
    label: "最后登录时间",
    prop: "lastLoginTime",
    width: 220
  },
  {
    label: "创建时间",
    prop: "createdTime",
    width: 220
  },
  {
    label: "操作",
    slot: "operate",
    fixed: "right",
    width: 180
  }
];
const fromColumns: PlusColumn[] = [
  {
    label: "昵称",
    prop: "nickname",
    valueType: "copy"
  },
  {
    label: "状态",
    prop: "status",
    valueType: "select",
    options: [
      {
        label: "禁用",
        value: "0"
      },
      {
        label: "可用",
        value: "1"
      }
    ]
  },
  {
    label: "用户名",
    prop: "username",
    valueType: "copy"
  },
  {
    label: "邮箱",
    prop: "email",
    valueType: "copy"
  },
  {
    label: "手机号",
    prop: "phone",
    valueType: "copy"
  },
  {
    label: "注册时间",
    prop: "createdTime",
    valueType: "date-picker",
    fieldProps: {
      type: "datetimerange",
      startPlaceholder: "请选择起始时间",
      endPlaceholder: "请选择结束时间"
    }
  }
];
export { fromColumns, tableColumns };
